package org.jeecg.modules.relation.relclassstudent.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.modules.relation.relclassstudent.entity.RelClassStudent;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.relation.relclassstudent.vo.RelClassesAndStudentsVO;
import org.jeecg.modules.student.vo.StuStudentVo;

import java.util.List;

/**
 * @Description: rel_class_student
 * @author: baochangrong
 * @Date: 2022-02-10
 * @Version: V1.0
 */
public interface IRelClassStudentService extends IService<RelClassStudent> {
    IPage<RelClassesAndStudentsVO> queryVo(Page<RelClassesAndStudentsVO> relClassesAndStudentsVOPage, RelClassesAndStudentsVO relClassesAndStudentsVO, String tenantId);

    public boolean updateRelBycol(RelClassStudent relClassStudent);

    public int insertUpgradeRelClassStudent(RelClassesAndStudentsVO relClassesAndStudentsVO);
    /**
     *根据学生vo信息变更学生所在的班级
     * @param stuStudentVo
     */
    RelClassStudent saveByStuStudentVo(StuStudentVo stuStudentVo);
    /**
     *根据学生vo信息变更学生所在的班级
     * @param stuStudentVo
     */
    public RelClassStudent saveOrupdateByStuStudentVo(StuStudentVo stuStudentVo);
}
